package org.alex.samples.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "exam_user_role")
public class ExamUserAndRole implements Serializable {

	private static final long serialVersionUID = -243734450591104972L;

	@Id
	@Column(name = "user_id", nullable = false)
	private String userId;

//	@Id
	@Column(name = "role_id", nullable = false)
	private Integer roleId;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

}
